﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EPiServer.XmlRpc;

namespace TemplateFoundation.MetaWeblog
{
    /// <summary>
    /// Represents a single page over MetaWeblog
    /// </summary>
    public class PageObjectData : ContentData
    {
        /// <summary>
        /// Allow pings
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Ignore)]
        public int mt_allow_pings;

        /// <summary>
        /// Page ID
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Ignore)]
        public int page_id;

        /// <summary>
        /// Page parent ID
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Ignore)]
        public int page_parent_id;

        /// <summary>
        /// Page status
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Ignore)]
        public string page_status;

        /// <summary>
        /// Page title
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Ignore)]
        public string page_title;

        /// <summary>
        /// Permalink
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Ignore)]
        public string permaLink;

        /// <summary>
        /// Extended description or content
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Ignore)]
        public string text_more;

        /// <summary>
        /// Page order
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Ignore)]
        public object wp_page_order;

        /// <summary>
        /// Page parent ID
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Ignore)]
        public object wp_page_parent_id;

        /// <summary>
        /// Page parent title
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Ignore)]
        public string wp_page_parent_title;

        /// <summary>
        /// Password
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Ignore)]
        public string wp_password;
    }
}
